package com.meisupic.copyright.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.meisupic.copyright.common.AuthProcessEnum;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * creation wuxun
 * @version V1.0
 * @Description: TODO
 * @date 2018/1/15 21:25
 */
@Data
public class RealNameAuthResponVo implements Serializable {
    private static final long serialVersionUID = -6558234365895195877L;

    private String id;

    /**
     * 企业或个人名称.
     */
    private String authName;

    /**
     * 认证类型
     */
    private String authType;


    /**
     * 证件类型.
     */
    private Integer documentType;

    /**
     * 证件号码.
     */
    private String documetNo;

    /**
     * 证件是否长期有效
     */
    private Integer longTermEffective;

    /**
     * 失效日期
     */
    private Date invalidDate;

    /**
     * 证件照片正面图片地址
     */
    private String documentImgPositive;

    /**
     * 证件反面照片
     */
    private String documentImgBack;

    /**
     * 手机号码.
     */
    private String mobile;

    /**
     * 邮箱.
     */
    private String email;

    private String province;

    private String city;

    private String address;

    /**
     * 法人身份号码.
     */
    private String corporateIdentityCardNo;

    /**
     * 法人身份证正面照片.
     */
    private String corporateIdentityCardImgPositive;

    /**
     * 法人身份证反面照片.
     */
    private String corporateIdentityCardImgBack;

    /**
     * 审核状态
     */
    private AuthProcessEnum auditStatus;

    private String auditStatusName;

    private Long creatorId;

    private String creator;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;


    public String getAuditStatusName() {
        return auditStatus.getDesc();
    }

    public String getCreator() {
        return creator;
    }
}
